package com.xinhua.erp.repo;

import com.xinhua.erp.pojo.Pay;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface PayRepo extends JpaRepository<Pay,Long> , JpaSpecificationExecutor<Pay> {

    Page<Pay> findAllByType(String type, Pageable pageable);

    List<Pay> findAllByType(String type);
}
